package at.jku.pervasive.gui.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

public class ExitAction extends AbstractAction
{

	private final JFrame frame;

	public ExitAction(JFrame frame)
	{
		super("Exit");

		this.frame = frame;
	}

	public void actionPerformed(ActionEvent e)
	{
		this.frame.dispose();
		this.frame.setVisible(false);
		System.exit(0);
	}

}
